<%@include file="_header.jsp"%>
<title>${inhoud.changeCourseTitle}</title>
</head>
<body>
    <c:choose>
        <c:when test="${userLevel != 2 && userLevel != 3}">
            <%@include file="errorPage.jsp"%>
        </c:when><c:otherwise>
            <%@include file="_menu.jsp"%>

            <div class="wrappermain">


                <div class="digitalclass">
                    <div id="subheader"><a href="#"><div id="bar-textcontent">${inhoud.adminHomeT5}</div></div>


                    <div class="main-digital">
                        <br>
                        <c:if test="${foutMelding != null}">
                            <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
                            <p><a style="color:#FF0000">${foutMelding}</a></p>
                        </c:if>

                        <form  method="post" action="change_course">
                            <input type="hidden" id="ID" name="ID" value="${course.courseID}"></input>
                            <table>
                                <tr><td>
                                        <table border="1">
                                            <tr>
                                                <td>${inhoud.changeCourseT}:</td>
                                                <td><input type="textfield" id="coursename" name="coursename" value="${course.courseName}"></input></td>
                                            </tr>
                                            <tr>
                                                <td>${inhoud.changeCourseT2}</td>
                                                <td><input type="textfield" id="description" name="description" value="${course.courseDescription}"></input></td>
                                            </tr>
                                            <tr>
                                                <td>${inhoud.changeCourseT3}</td>
                                                <td><input type="textfield" id="courselanguage" name="courselanguage" value="${course.courseLanguage}"></input></td>
                                            </tr>

                                            <c:if test="${userlevel == 3}">
                                                <tr>
                                                    <td>${inhoud.changeCourseT4}:</td>
                                                    <td>&#8364;<input type="textfield" id="price" name="price" value="${course.price}"></input></td>
                                                </tr>
                                            </c:if>

                                        </table>  
                                    </td>
                                </tr>
                                <tr>
                                    <td><input type="submit" name="submit" value="${inhoud.changeUserT2}"></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>

        </c:otherwise></c:choose>
</body>
</html>
